-- GENERATED SPELL FOR [Mistwing Rogue] --


function spell0_8763(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8763', 3000, 1)
end

function Sorts_8763(pUnit, Event)
local choix_sorts_8763 = math.random(0, 0)
if choix_sorts_8763 == 0 then
pUnit:RegisterEvent('spell0_8763', 1, 1)
end
end

function mob8763_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8763', math.random(1500, 3000), 1)
end

function mob8763_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8763_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8763_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8763, 1, 'mob8763_Action')
RegisterUnitEvent(8763, 2, 'mob8763_Leave')
RegisterUnitEvent(8763, 3, 'mob8763_Kill')
RegisterUnitEvent(8763, 4, 'mob8763_Die')
